// 初始化样式
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
// 设置body背景色
body{
    background-color: #666;
}
// 设置a标签基础样式
a {
    text-decoration: none;
    // 设置a标签文字颜色为继承
    color: #fff;
}
dd{
    color: black;
}
//设置页面基础布局
.main{
    // 设置盒子最大宽度
    max-width: 540px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    // 设置分类部分样式
    // 设置酒店类别样式
    .hotel,.tirckey,.travel,.others{
        width: 100%;
        height: 90px;
        display: flex;
        border-radius: 5px;
        margin-top: 5px;
        .hotel_left{
            flex: 1;
            display: flex;
            flex-direction: column;
            justify-content: space-around;
            align-items: center;
            border-right: 1px solid #fff;
        }
        .hotel_list{
            flex: 2;
            display: flex;
            flex-wrap: wrap;
            a{
                width: 50%;
                display: flex;
                justify-content: center;
                align-items: center;
            }
            >:nth-child(-n+2){
                border-bottom: 1px solid #fff;
            }
            >:nth-child(odd){
                border-right: 1px solid #fff;
            }
        }
    }
    .hotel{
        background-color: #ff697a;
        .hotel_left{
            flex: 1;
            display: flex;
            flex-direction: column;
            justify-content: space-around;
            align-items: center;
            border-right: 1px solid #fff;
            >:nth-child(2){
                width: 43px;
                height: 43px;
                background-size: 104px 328px;
                background-image: url("../images/xc_sprites.png");
                background-position:  0 -130px ;
            }
        }
    }
    .tirckey{
        background-color:#3d98ff;
        .hotel_left:nth-child(2){
            background-image: none;
            content:"图标";
        }
    }
    .travel{
        background-color: #44c522;
    }
    .others{
        background-color: #fc9720;
        .hotel_left>span{
           width: 100%;
           height: 50%;
           display: flex;
            justify-content: center;
            align-items: center;
        }
        .food_border{
                border-bottom: 1px solid #fff;
            } 
    }

    // 设置导航分类样式
    .nav{
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        margin-top: 5px;
        a{
            width: 25%;
            height: 60px;
            background-color: #fff;
            color:#000;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: space-around;
            i{
                width: 20px;
                height: 20px;
                background-size: 20px 315px;
                background-image: url("../images/icon_sprites.png");
                background-position: 0 -80px;
            }
        }
    }
    // 设置特卖汇样式
    .hot_sale{
        background-color: #fff;
        margin-top: 5px;
        padding: 8px;
        width: 100%;
        .sale_title{
            display: flex;
            width: 100%;
            justify-content: space-between;
            :nth-child(1){
                color: #fd3c52;
                font-style: italic;
                font-weight: 600;
            }
            a{
                background: linear-gradient(to right, #ff6b7f,#ff83ce) ;
                padding: 2px 8px;
                border-radius: 12px;
                font-size: 12px;
            }
        }
        .sale_prod{
            display: flex;
            >div{
                width: 50%;
                background-color: #fff;
            }
            .sale_left{
                position: relative;
                .hot{
                    position: absolute;
                    width: 34px;
                    height: 24px;
                    background-color: red;
                    font-size: 12px;
                    padding: 5px;
                    &:before{
                        content:"";
                        position:absolute;
                        right:-20px;
                        top: 0;
                        border-width: 24px 20px 0 0;
                        border-style: solid;
                        border-color: red transparent transparent red;
                    }
                }
                img{    
                    width: 100%;
                    height: 143px;
                }
                .prod_text{
                    color: #000;
                    font-size: 14px;
                    height: 40px;
                    overflow: hidden;
                }
                .sale_price{
                    >:nth-child(1){
                        color: #fd3a51;
                    }
                    >:nth-child(2){
                        background-color: #fd3a51;
                        font-size: 12px;
                        padding: 0 4px;
                        border-radius: 8px;
                    }
                }
            }

            .sub_sell {
                flex: 1;
                display: flex;
                flex-wrap: wrap;
                >a {
                width: 50%;
                height: 50%;
                padding: 10px; // border: 1px solid #000;
                dl {
                    dt {
                    font-size: 14px;
                    }
                    dd {
                    font-size: 12px;
                    }
                }
                >img {
                width: 54px;
                height: 71px;
                }
            }
            >a:nth-child(1) {
                width: 100%;
                position: relative;
                dl {
                    dt {
                    color: #fd3a51;
                    font-weight: 600;
                    }
                }
                >img {
                    position: absolute;
                    bottom: 0;
                    right: 0;
                }
            }
            >a:nth-child(2) {
                display: flex;
                flex-direction: column;
                align-items: center;
                justify-content: space-around;
                >dl {
                    dt {
                    color: #6aabff;
                    font-weight: 600;
                    }
                    dd {
                    >span {
                    color: #6aabff;
                    }
                    }
                }
                >img {
                    width: 50px;
                    height: 35px;
                }
            }
            >a:nth-child(3) {
                display: flex;
                flex-direction: column;
                align-items: center;
                justify-content: space-around;
                >dl {
                    dt {
                    color: #68d2bc;
                    font-weight: 600;
                    }
                    dd {
                        >span {
                            color: #68d2bc;
                        }
                    }
                }
                >img {
                    width: 50px;
                    height: 35px;
                }
            }
        }

        }
       
    }

    // 设置热门活动样式
    .hot_activite{
        width: 100%;
        margin-top: 5px;
        background-color: #fff;
        padding: 8px;
        // display: flex;
        .hot_title{
            width: 100%;
            display: flex;
            justify-content: space-between;
            // padding: 8px;
            :nth-child(1){
                font-style: italic;
                color: #ffa500;
                font-weight: 600;
            }
            a{
                background: linear-gradient(to right, #ff6b7f,#ff83ce) ;
                padding: 2px 8px;
                border-radius: 12px;
                font-size: 12px;
            }
        }
        .hot_content{
            width: 100%;
            display: flex;
            flex-wrap: wrap;
            a{
                width: 50%;
                img{
                    width:100%;        
                }
            }
            :nth-child(3){
                order:-1;
            }
            :nth-child(4){
                order:-2;
            }
        }
    }
    
    // 设置联系方式样式
    .phone{
        width: 100%;
        background-color: #fff;
        margin-top: 5px;
        display: flex;
        a{
            flex: 1;
            color: black;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            align-items: center;
        }
    }

    // 设置版权样式
    .copyright{
        width: 100%;
        text-align: center;
        a{
            color: #000;
        }
    }

}